package com.hyc.seckillsystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.Date;

/**
 * @projectName: seckillsystem
 * @package: com.hyc.seckillsystem.pojo
 * @className: SeckillGoods
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2022/3/7 11:25
 * @version: 1.0
 */
//秒杀商品表
@TableName("seckillgoods")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SeckillGoods {
    @Id
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String goods_id;
    private double seckill_price;
    private int stock_num;
    private Date start_time;
    private Date end_time;
}
